package region

import (
	"context"

	"gitee.com/krio/grpc-go-server/cmd/lib"
	"gitee.com/krio/grpc-go-server/dao/model"
	"gitee.com/krio/grpc-go-server/dao/model/region"
)

type RegionDao struct{}

func (r *RegionDao) Add(ctx context.Context, req *region.Region) (int64, error) {
	return lib.X.Table(model.TableRegion).Insert(req)
}
